package com.supermarket.manage.common.dto.prod.response;

import com.supermarket.manage.common.pojo.Product;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-09 22:33
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("ProductDto:商品信息对象")
public class ProductDto extends Product implements Serializable {

    private static final long serialVersionUID = -6700884165765926170L;
    /**
     * 一级分类名称
     */
    @ApiModelProperty(value = "一级分类名称")
    private String firstCname;

    /**
     * 二级分类名称
     */
    @ApiModelProperty(value = "二级分类名称")
    private String secondCname;

    /**
     * 三级分类名称
     */
    @ApiModelProperty(value = "三级分类名称")
    private String thirdCname;
}
